package com.wdhcr.minioupload.config;


import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @Author: 司天宏
 * @Description:
 * @Date: 2024-03-09 16:14
 */
@Slf4j
@Configuration
public class WebMvcConfig extends WebMvcConfigurationSupport {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry resource) {
        log.info("静态资源映射");
        resource.addResourceHandler("/templates/**").addResourceLocations("classpath:/templates/");
    }
}
